#include "VirtualBusinessService.h"
#include "IContainer.h"
#include "IVirtualBusiness.h"
#include "ILogger.h"
void VirtualBusinessService::onLoad(INode *node) {
    IContainer * container = Bean<IContainer>("service").pointer();
    if (container)
    {
        container->on(OPEN,[=](ISession * session) ->int{
            LogI("send try to send");
            session->Business<IVirtualBusiness>()->echo(session->getServlet(),"from server:hello,world");
            
            return 0;
        });
    }    
}

REG_PLUGIN(VirtualBusinessService);